package exercise3;

public class AllNumberOfDivison extends BaseExample {
//	输出能被5、6同时整除的整数
	public void divisible_integer() {
		StringBuilder str = new StringBuilder();
		str.append("\n");
		this.logger.debug("能被5和6同时整除的所有整数(100~1000):");
		int count = 0;
		for (int i = 100; i < 1000; i++) {
			if (i % 5 == 0 && i % 6 == 0) {
				count++;
				str.append(i+" ");
				if (count % 10 == 0) {
					str.append("\n");
				}
				
			}
		}
		this.logger.info(str);
	}

}
